package com.mck.mapper;

import com.mck.entity.Title;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface TitleMapper {
    /**
     * 获取系统标题
     */
    @Select("select id, font_color, font_size, title, create_time, update_time from system_title")
    Title getTitle();

    /**
     * 更新系统标题
     */
    @Update("update system_title set title = #{title}, font_color = #{fontColor},font_size = #{fontSize}, update_time = #{updateTime} where id = #{id}")
    void updateTitle(Title title);
}
